home *** CD-ROM | disk | FTP | other *** search
- /*
- File: OSAGeneric.h
-
- Copyright: © 1984-1993 by Apple Computer, Inc., all rights reserved.
-
- WARNING
- This file was auto generated by the interfacer tool. Modifications
- must be made to the master file.
-
- */
-
- #ifndef __OSAGeneric__
- #define __OSAGeneric__
-
- #ifndef __OSA__
- #include <OSA.h>
- /* #include <AppleEvents.h> */
- /* #include <Types.h> */
- /* #include <ConditionalMacros.h> */
- /* #include <MixedMode.h> */
- /* #include <Traps.h> */
- /* #include <Memory.h> */
- /* #include <OSUtils.h> */
- /* #include <Events.h> */
- /* #include <Quickdraw.h> */
- /* #include <QuickdrawText.h> */
- /* #include <IntlResources.h> */
- /* #include <EPPC.h> */
- /* #include <PPCToolBox.h> */
- /* #include <AppleTalk.h> */
- /* #include <Processes.h> */
- /* #include <Files.h> */
- /* #include <SegLoad.h> */
- /* #include <Notification.h> */
- /* #include <AEObjects.h> */
- /* #include <Components.h> */
- #endif
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- enum {
- errOSAComponentMismatch = -1761, // Parameters are from 2 different components
- errOSACantOpenComponent = -1762 // Can't connect to scripting system with that ID
- };
-
-
- // Component version this header file describes
-
- enum {
- kGenericComponentVersion = 0x0100
- };
-
- #define kGSSSelectGetDefaultScriptingComponent 0x1001
-
- #define kGSSSelectSetDefaultScriptingComponent 0x1002
-
- #define kGSSSelectGetScriptingComponent 0x1003
-
- #define kGSSSelectGetScriptingComponentFromStored 0x1004
-
- #define kGSSSelectGenericToRealID 0x1005
-
- #define kGSSSelectRealToGenericID 0x1006
-
- #define kGSSSelectOutOfRange 0x1007
-
- typedef OSType ScriptingComponentSelector;
-
- typedef OSAID GenericID;
-
-
- // get and set the default scripting component
-
- extern pascal OSAError OSAGetDefaultScriptingComponent(ComponentInstance genericScriptingComponent, ScriptingComponentSelector *scriptingSubType)
- FIVEWORDINLINE(0x2F3C, 4, 0x1001, 0x7000, 0xA82A);
- extern pascal OSAError OSASetDefaultScriptingComponent(ComponentInstance genericScriptingComponent, ScriptingComponentSelector scriptingSubType)
- FIVEWORDINLINE(0x2F3C, 4, 0x1002, 0x7000, 0xA82A);
-
- // get a scripting component instance from its subtype code
-
- extern pascal OSAError OSAGetScriptingComponent(ComponentInstance genericScriptingComponent, ScriptingComponentSelector scriptingSubType, ComponentInstance *scriptingInstance)
- FIVEWORDINLINE(0x2F3C, 8, 0x1003, 0x7000, 0xA82A);
-
- // get a scripting component selector (subType) from a stored script
-
- extern pascal OSAError OSAGetScriptingComponentFromStored(ComponentInstance genericScriptingComponent, const AEDesc *scriptData, ScriptingComponentSelector *scriptingSubType)
- FIVEWORDINLINE(0x2F3C, 8, 0x1004, 0x7000, 0xA82A);
-
- // get a real component instance and script id from a generic id
-
- extern pascal OSAError OSAGenericToRealID(ComponentInstance genericScriptingComponent, OSAID *theScriptID, ComponentInstance *theExactComponent)
- FIVEWORDINLINE(0x2F3C, 8, 0x1005, 0x7000, 0xA82A);
-
- // get a generic id from a real component instance and script id
-
- extern pascal OSAError OSARealToGenericID(ComponentInstance genericScriptingComponent, OSAID *theScriptID, ComponentInstance theExactComponent)
- FIVEWORDINLINE(0x2F3C, 8, 0x1006, 0x7000, 0xA82A);
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-
-